package openadmin.controller.gwt.form;

/**
 * <desc> Parameter Field: A field used in a form to retrieve a parameter
 * In order to simplify programming, all the attributes have been declared "public"
 * This class has a internationalized caption
 * It can be assigned a personalized image and a CSS style.
 * 
 * @author edu
 *
 */
public class ParameterField {

	
	public String fieldName;		// i18n Name of the field 
	
	public String defaultValue;		// Default value of the field
	public String toolTipText;		// Information to display in a Mouse Over event
	public String mask; 			// Edition mask of the field
	public String editor; 			// Control to be used in this field (TextBox, ListBox, checkBox..)

	public String[] listValues; 	// Used only in a checkBox control to show only allowed options
	public String HQL;				// A HQL String for usually retrieving id + description 
	
	public String max;				// Max value the parameter can achieve
	public String min; 				// Minimum value the parameter can achieve
	
	public String maxLen; 			// Max Length of the field
	public String minLen; 			// Minimum length of the field
	
	public boolean nullable; 		// If it can get a null value
	public boolean enabled;			// If enabled 
	public String style;			// A CSS style 

}
